﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Tesla.DataAccess.DataAccessLogic.Implementations
{
    public class BaseDA //: IBaseDA
    {
        DateTime _datetime;
       
        public DateTime UpdateTimeStamp
        {
            get { return _datetime; }
            set{ value = System.DateTime.Now; }
        }

        public Guid SetSafeGuid(Guid guid)  {  return guid == null ? Guid.Empty : guid;  }

        public DateTime SetSafeDateTime(DateTime dateTime) { return dateTime; }

        public int SetSafeInt(int intVal)  { return intVal == null ? 0 : intVal;  }

        public string SetSafeString(string strVal)  { return strVal == null ? string.Empty : strVal;  }

        public bool SetSafeBoolean(bool boolVal) { return boolVal == null ? false : boolVal; }

    
        #region IBaseDA Members

        

        #endregion
}
}
